Avoid Methods

October 8, 2009 · 24 views · 0 comments

Avoid Methods
taken by : Dedric Mauriac
on Woodbridge (238, 18, 105)
blogHUD!

About

During my day job, I often separate code into functions for purposes of better manageability. Each function is a black box in a sense. It describes what it does, and goes ahead and does the job. In LSL, there are memory limitations. I find that the reverse is more beneficial. You can reclaim more memory by avoiding functions all together and putting the code in- line. A function should only exist if it is being called from two or more places within the code. I was able to reclaim about 6 KB of data tonight. I need to put down my work and breathe in some fresh air. I wonder when the old clouds will go away. From Dedric Mauriac via bloghud.com